home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / chat.arc / CHAT.DOC next >
Encoding:
Text File  |  1988-07-09  |  13.5 KB  |  270 lines

  1. CHAT                    (Current Version 1.04 (beta))
  2. By: Tom Evans
  3. Jax C-Scape             (Opus 1:112/1027.0)     (904) 724-1377
  4.              Specializing In Custom Opus Utility Software
  5.                                 and
  6.                         Custom C Programming
  7.  
  8.                     Documentation For CHAT Program
  9.  
  10.         The CHAT program is a utility program for OPUS bulletin board
  11. systems that will allow your users that use ansi graphics to chat with
  12. you in a split screen mode with the text that the sysop types on the 
  13. bottom, and the text that the user types on the top.  It also allows
  14. for both parties to talk at the same time.
  15.  
  16.         Unlike previous versions of this program, version 1.02f and above
  17. does check whether or not the user has ansi graphics enabled. If they do
  18. not, and you allow the chat, they will see a normal chat without any ansi
  19. graphics, while you will see the screen as normal.
  20.  
  21.         I will explain how to install this program as part of your OPUS
  22. board, but first, I would like to explain the parameters that CHAT uses
  23. on the command line when activated.
  24.  
  25.         The first and second parameter on the command line are reserved
  26. for the sysop's name.  These are the only required parameters.  Actually,
  27. they are not even required.  If they are not supplied, then CHAT, instead
  28. of displaying the sysop's name in the lower window, will display "Sysop".
  29. One word to note here.  It does not matter if you put your name in all
  30. caps or all lower case letters, or however you want.  When activated, CHAT
  31. will automatically convert all of the characters to lower case, except the
  32. first character of each part of the name.  For example:
  33.         CHAT tom evans
  34. Will display the sysop's name as Tom Evans.
  35.  
  36.         The next parameters are optional.  There are a number of things you 
  37. can put here. The first is the port number. CHAT defaults to using COM1 as 
  38. the communications port.  This may be changed with the /P:n parameter.  
  39. Specifying 1 for this will default to COM1, 2 will use COM2, and so on.
  40. To use COM2, for instance you would include /P:2 on the command line.
  41.  
  42.          The next thing you may specify is for those sysops who wish to
  43. use the CHAT program when they want to chat with a user.  This is normally
  44. accomplished using the opus "c" command when the user is at a menu.  If
  45. you use the AUTOCHAT feature, then CHAT will start up and go directly into
  46. the chat mode.  This will alleviate CHAT from paging the sysop when it is
  47. the sysop who is requesting the chat. To do this, just include /AC on the
  48. command line.
  49.  
  50.         Another option you may specify is the hours for which CHAT will be
  51. avaliable.  You may only specify one start time and one stop time (to be
  52. changed in a future release).  For instance, you may want to turn chat on
  53. at 11:00 am, and off at 10:30 pm.  To use this feature, just include
  54. something like  1000/2300 on the command line.  This would enable CHAT
  55. from the hours of 10:00am until 11:00pm.  The time specified is in 24 hour
  56. format.
  57.  
  58.         If you wish for CHAT to NOT display the "Press enter ...." prompt
  59. when you exit from chat, you may specify the /NP qualifier.  This is
  60. useful in cases where OPUS may already provide a similar prompt for the
  61. user to return to OPUS.  This will alleviate the user from getting one
  62. "Press enter" prompt from CHAT and another from OPUS.
  63.  
  64.         If you are running multiple copies of OPUS and you need for CHAT
  65. to use something other than the LASTUSER.BBS file (i.e.  LASTUSE1.BBS or
  66. equivalent), then you can use the /U:filename qualifier.  To use
  67. LASTUSE1.BBS, just include /U:Lastuse1.Bbs on the command line and CHAT
  68. will use it instead of the default filename.
  69.  
  70.         If you are running a serial printer as COM1, or you are
  71. experiencing some problems with your users receiving garbage when CHAT
  72. starts up, it is probably due to the COMmunications port setup on your
  73. machine.  For my intents and purposes, DOS effectively makes COM1
  74. dissappear and will make COM1 be your modem and COM2 be non-existant.
  75. This may sound strange, but it happens.  Anyway, if your users receive
  76. garbage and you are using COM2, you may try the /BP:1 qualifier.  This
  77. will switch the port from which I detect the user's baud rate to the
  78. I/O port specified at the COM1 address.  This usually takes care of this
  79. kind of problem.  If you try this and still experience garbage, just let
  80. me know and we will see what can be done.
  81.  
  82.         That's the end of the qualifiers, but there are still some other
  83. new items that bear mentioning.  In versions previous to 1.04, you could
  84. press any key to enter CHAT while you were being paged.  Now you HAVE to
  85. press the C key to enter CHAT.  Also, for you sysops who may have CHAT
  86. enabled from within a BBS file and get annoyed when a user attempts to
  87. chat during unauthorized times, but you would still like to chat with
  88. them, you used to have to wait until they switched to the main menu to be
  89. able to chat with them.  No more, now, when they receive the "Press
  90. enter..." prompt, (only available if you DID NOT specify /NP on the
  91. command line), you may still press the C key and start the chat.  For
  92. those sysops who were annoyed when their users pressed CTRL-G while they
  93. were in chat, it has now been disabled.  CTRL-G for a user no longer
  94. works.
  95.  
  96.         Another new item, actually just a previously undocumented feature,
  97. is the disallow feature.  If you have certain users on your board who you
  98. do not want to give chat privilege, even during normal chat hours, then
  99. you can put a file in your OPUS root directory (Normally C:\OPUS) called
  100. CHAT.DIS.  In this file, you may place the first and last name of users
  101. who you wish to "lock-out" from chat.  If the user tries to chat, they
  102. will be told that they have insufficient privilege for the chat operation,
  103. and you (the sysop) will also be informed that the user trying to yell has
  104. insufficient privilege.
  105.  
  106.         Now, for the new keyboard assignments.  One word to note here. 
  107. These are the key assignments for CHAT 2.0.  The 1.04 version is intended
  108. as an "In-House" upgrade path and "Personal" bug fix version.  In short,
  109. this is where I will test my newly added features.  The 1.04 version you
  110. have may or may not support all of the items listed below.  If it does,
  111. then you should feel privileged, since even my version doesn't include all
  112. of them yet.  The only way to tell if someone else's 1.04 version has more
  113. capabilities than yours is to check the actual file date or file size. 
  114. Generally, the larger or newer the file, the more features you will have.
  115. Note: This list is subject to change at programmer discretion.
  116.  
  117.         While in CHAT, both the sysop and user will be able to use certain
  118. keys on their keyboard to help them out while chatting.
  119.  
  120. Key     Sysop     User     Description
  121. ---     -----     ----     -----------
  122. F1       Yes       No      Display help screen
  123. F2       Yes       No      Capture I/O Toggle
  124. F3       Yes       No      Bell Noise Toggle
  125. F4       Yes       No      Re-size windows
  126. F5       Yes       No      Printer I/O Toggle
  127. F6       Yes       No      Read File into window
  128. F7       Yes       No      Jump to DOS
  129. F8       Yes       No      Immediately Hangup on caller
  130. F9       Yes       No      Toggle ANSI/Non-ANSI mode
  131. F0        ?        ?       ?
  132. Arrows   Yes       Yes     Move cursor around window
  133. Home     Yes       Yes     Move cursor to beginning of line
  134. End      Yes       Yes     Move cursor to end of line
  135. CTRL-L   Yes       Yes     Clear current window
  136. CTRL-R   No        Yes     Re-draw screen
  137.  
  138. Some examples of use:
  139.         To start CHAT on com2 (user invoked):
  140.         CHAT tom evans /P:2
  141.  
  142.         To start CHAT on default com port of com1 (sysop invoked):
  143.         CHAT tom evans /AC
  144.  
  145.         To start CHAT on com2 (sysop invoked):
  146.         CHAT tom evans /AC /P:2
  147.  
  148.         To make CHAT available only from 11:15 am to 10:35 pm on com1
  149.         (user invoked): [Note the 24 hour format for the start/stop time]
  150.         CHAT tom evans 1115/2235
  151.  
  152.         Same as above only using com2:
  153.         CHAT tom evans 1115/2235 /P:2
  154.  
  155.         Don't display "Press enter..." prompt upon exit:
  156.         CHAT Tom Evans /NP
  157.  
  158.         To fix user's garbage problem sometimes encountered on COM2:
  159.         CHAT Tom Evans /P:2 /BP:1
  160.  
  161.         You may not specify /AC with a time value, but this is
  162. irrelevant, since if the sysop is initiating the chat, then there needs to
  163. be no start/stop time.
  164.  
  165. INSTALLATION NOTES:
  166.         There are many ways to install this program with opus.  I will
  167. discuss each one of them briefly.
  168.  
  169.         To install CHAT as a sysop invoked program to chat with a user,
  170. you may use one of the Function keys on your keyboard to activate CHAT.
  171. If for example, you wanted F6 to invoke the CHAT program, then you would
  172. create an F6.BBS file with the following line in it:
  173. (Note that ^O is control-O)
  174.         ^OCc:\opus\chat tom evans /AC
  175. (NOTE:  If you use something like F6.BBS then make sure that there is no
  176. F6.GBS file that may interfere with it for your ansi callers.)
  177.  
  178.         To install CHAT as a user invoked program to chat with the sysop, 
  179. while retaining the normal OPUS Y)ell at sysop function, you could put the
  180. following line in your bulletin.bbs file if a user selects a particular 
  181. choice from your bulletin menu:
  182.         ^OCc:\opus\chat tom evans 1115/2235 /P:2
  183.  
  184.         To install CHAT in place of the OPUS Y)ell at sysop menu selection
  185. at the MAIN MENU, you can use a program such as OPRIV to edit your mainpriv
  186. file to change the Y)ell at sysop selection to something else and making the
  187. menu selection hidden.  For instance, change "Y)ell at sysop" to
  188. "Z)ell at sysop" and make this selection "hidden".  This will keep the normal
  189. OPUS chat routine from running when the user types "y" at the MAIN MENU.  Now,
  190. to install CHAT into the MAIN MENU, you can change the "O)utside" selection or
  191. the "E)ditorial" selection to be "Y)ell at Sysop".  If you use the "O)utside"
  192. approach, then in your OPUS.CTL file, you will need to change the line
  193. which selects the program to run as an OUTSIDE program.  First, comment out
  194. (place a "%" in front of the line) the:
  195.  
  196. Uses Outside  c:\opus\misc\leaving
  197.  
  198. Also, comment out the line:
  199.  
  200. Uses Return c:\opus\misc\return
  201.  
  202. Then, remove the comment from the "outside dos" line to read:
  203.  
  204. Outside Dos c:\opus\chat tom evans
  205.  
  206.         The easiest way to install CHAT in your OPUS is to create a
  207. YELL.BBS file in your OPUS Root directory. (NOT your miscellaneous BBS
  208. file directory)  In this file put the command:
  209.  
  210.         ^OCc:\opus\chat Tom Evans /NP  (along with any other qualifiers)
  211.  
  212. Next, use OPUS or OEVENT or some similar program to modify your schedule
  213. file and disable or delete your YELL event.  This will cause OPUS to look
  214. for the YELL.BBS file to start your custom chat program whenever your
  215. users hit Y)ell at sysop.  You must however, have the Y)ell option
  216. available at the MAIN MENU for your users to be able to select it. (Note: 
  217. Always save the easiest method for last to guarantee that all your users
  218. will know how to install your program in any given situation.)
  219.  
  220.         Advanced users will note that you could make one selection activate
  221. CHAT with a time specification on it for normal users, and make another
  222. CHAT available as the normal OPUS chat routine for your special users.
  223. This will allow normal users to page during certain hours only, but will 
  224. allow users with higher privilege levels to chat with you at any time.
  225.  
  226.         One final note.  As with all my programs, there is no warranty.
  227. Especially since this version is not even a public release version.  The
  228. program has been tested on a few systems however, and no known bugs exist.
  229. If you do however, find an undocumented "feature" of this program, please
  230. send mail to me at my board noted at the beginning of this document describing
  231. the problem.  I will more than likely make repairs immediately, (with the
  232. exception of the Backspace/Return problem during Non-ANSI mode chat. I
  233. know this feature exists and will eventually get around to fixing it when
  234. I have finished working on the ANSI section.)
  235.  
  236. Revision Notes:
  237.     1.03a   Added some minor improvements to chat for testing (paving
  238.             the way for version 2.0).  Improved Clear Window speed.
  239.  
  240.     1.03b   Fixed infamous bug which may have caused problems on
  241.             ports other than COM1.
  242.  
  243.     1.04    This is not a release version, but a continuous upgrade
  244.             version.  This version is used "in-house" during the upgrade
  245.             to version 2.0.  Many features will be added in this version
  246.             and the version number will not change.  The only way to tell
  247.             how recent your 1.04 version is would be to look at the file
  248.             date.  Version not for general distribution.  In general,
  249.             adds MANY new features.
  250.  
  251.  
  252.  
  253. Future Expansion:
  254.         1.)  Use the OPUS schedule file for the chat times instead of 
  255.              specifying them on the command line.
  256.  
  257.         2.)  Read the OPUS.PRM file for things like the sysop's name, and
  258.              the COM port that is being used.
  259.  
  260. Done    3.)  Make a check for users who do not have ansi graphics enabled
  261.              or do not have an 80x24 screen, and make the program go into
  262.              a line mode chat, similar to the current OPUS 1.03a version
  263.              chat mode.
  264.  
  265.         4.)  Anything other features I can think of to make this program
  266.              better.
  267.  
  268.         If you can think of any other expansions or changes that you would
  269. like to see, just drop me a line, and I will see what I can do. 
  270.